package com.ygs.secs.model;

import java.io.Serializable;

public class FamilyMember implements Serializable {
    //表唯一标识，自增
    private Integer memberid;

    //姓名
    private String name;

    //关系
    private String relation;

    //电话
    private String phonenumber;

    //地址
    private String address;

    //职业
    private String occupation;


    private Student student;

    private static final long serialVersionUID = 1L;

    public Integer getMemberid() {
        return memberid;
    }

    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRelation() {
        return relation;
    }

    public void setRelation(String relation) {
        this.relation = relation;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", memberid=").append(memberid);
        sb.append(", name=").append(name);
        sb.append(", relation=").append(relation);
        sb.append(", phonenumber=").append(phonenumber);
        sb.append(", address=").append(address);
        sb.append(", occupation=").append(occupation);
        sb.append(", stuid=").append(student.getStuid());
        sb.append("]");
        return sb.toString();
    }
}